package com.pattern.structure.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

/**
 * @author yangguanzan
 * @date 3/31/22
 * @description
 */
public class DynamicProxy {


    public static <T> T newProxyInstance(ClassLoader classLoader, Class<?>[] interfaces
        , InvocationHandler handler) {
        return (T)Proxy.newProxyInstance(classLoader,interfaces,handler);
    }
}
